package study.member.sungil.quiz;

public class Quiz4_3 {
	
	public static void main(String[] args) {
		//quiz 1
		int x= 10;
		int y = 11;
		int result = x>y ? ++x : ++y;
		System.out.println("x : " +x +" ,y : " +y +" , result " + +result); // x = 10 , y=12 result 112
		
		//quiz 2
		int a = 100;
		int b = 90;
		x = 200;
		y = 300;
		boolean b_result = (++a < ++b) && (++x > ++y); //앞문장이 거짓이면 뒷문장이 실행 안됨 하하 
		System.out.println(a);
		System.out.println(b);
		System.out.println(x);
		System.out.println(y);
		System.out.println(b_result);
		
	}

}
